<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:if test="${list.totalPages>1}">
<div class="pagination" style="float:right">
	<ul>
		<li><a href="javascript:void();">总数：${list.totalRows}</a></li>
		<li <c:if test="${list.currentPage==1}">class="disabled"</c:if>><a href="list.htm?iDisplayStart=${list.currentPage-1}">上一页</a></li>
		<c:forEach begin="1" end="${list.totalPages}" var="item">
		<c:if test="${item < 4 || item==list.currentPage || item==list.currentPage+1 || item==list.currentPage+2 || item + 3 > list.totalPages }">
		<li <c:if test="${list.currentPage==item }">class="active"</c:if>><a href="list.htm?iDisplayStart=${item}">${item}</a></li></c:if>
		</c:forEach>
		<li <c:if test="${list.currentPage+1==list.totalPages}">class="disabled"</c:if>><a href="list.htm?iDisplayStart=${list.currentPage+1}">下一页 </a></li>
	</ul>
</div>
</c:if>